package ${packageName};

import com.duyj.rule.model.dto.UserDTO;

<#list ruleList as rule>

rule "${rule.name}"

no-loop ${rule.noLoop?string("true","false")}

when
    $s: UserDTO(age >= ${rule.minAge}, age <= ${rule.maxAge})
then
    modify($s){
        setUserCode("${rule.code}")
    }
end
</#list>


